<!DOCTYPE html>

<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <!-- Use Compatibility mode in IE -->
  <title>Bar Charts</title>
  <!--[if lt IE 9]><script language="javascript" type="text/javascript" src="../excanvas.js"></script><![endif]-->
  
  <link rel="stylesheet" type="text/css" href="/media/jquery-ui/css/jquery.jqplot.css" />
  <link rel="stylesheet" type="text/css" href="/media/jquery-ui/css/examples.css" />
  
  <!-- BEGIN: load jquery -->
  <script language="javascript" type="text/javascript" src="/media/jquery-ui/js/jquery-1.4.4.js"></script>
  <!-- END: load jquery -->
  
  <!-- BEGIN: load jqplot -->
  <script language="javascript" type="text/javascript" src="/media/jquery-ui/js/jquery.jqplot.js"></script>
  <script language="javascript" type="text/javascript" src="/media/jquery-ui/js/jqplot.barRenderer.js"></script>
  <script language="javascript" type="text/javascript" src="/media/jquery-ui/js/jqplot.categoryAxisRenderer.js"></script>
  <!-- END: load jqplot -->

  <style type="text/css">
    .jqplot-target {
        margin-bottom: 2em;
    }
    
    pre {
        background: #D8F4DC;
        border: 1px solid rgb(200, 200, 200);
        padding-top: 1em;
        padding-left: 3em;
        padding-bottom: 1em;
        margin-top: 1em;
        margin-bottom: 4em;
        
    }
    
    p {
        margin: 2em 0;
    }
    
    .note {
        font-size: 0.8em;
    }
  </style>
  
  <script class="code" type="text/javascript">
    $(document).ready(function(){
        var line1 = [1,4,9, 16];
		var line2 = [25, 12.5, 6.25, 3.125];
		plot1 = $.jqplot('chart1', [line1, line2], {
		    legend:{show:true, location:'ne'},title:'Bar Chart',
		    series:[
		        {label:'Profits', renderer:$.jqplot.BarRenderer}, 
		        {label:'Expenses', renderer:$.jqplot.BarRenderer}
		    ],
		    axes:{
		        xaxis:{renderer:$.jqplot.CategoryAxisRenderer}, 
		        yaxis:{min:0}
		    }
		});
    });
  </script>
    
  </head>
  <body>

        
    <div id="chart1" style="margin-top:20px; margin-left:20px; width:300px; height:300px;"></div>

  </body>
</html>